//
//  ProvinceCityRespose.m
//  ICrEAM
//
//  Created by mac on 16/10/31.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "ProvinceCityRespose.h"

@implementation ProvinceCityRespose
-(instancetype)init{
    self=[super init];
    if(self){
        
        [ProvinceCityRespose mj_setupObjectClassInArray:^NSDictionary *{
            return @{ @"JSONArrayList":[ProvinceModel class]};
        }];
    }
    return self;
}
@end
@implementation ProvinceModel
+ (NSDictionary *)replacedKeyFromPropertyName{
    return @{
             @"provinceCode" : @"PROVINCE_CODE",
             @"provinceName":@"PROVINCE_NAME",
             @"cityList" : @"CITY"
             };
}

-(instancetype)init{
    self=[super init];
    if(self){
        
        [ProvinceModel mj_setupObjectClassInArray:^NSDictionary *{
            return @{ @"cityList":[CityModel class]};
        }];
    }
    return self;
}
@end
@implementation CityModel

+ (NSDictionary *)replacedKeyFromPropertyName{
    return @{
             @"cityCode" : @"CITY_CODE",
             @"cityName":@"CITY_NAME",
            @"districtyList" : @"DICT"
             };
}
-(instancetype)init{
    self=[super init];
    if(self){
        
        [CityModel mj_setupObjectClassInArray:^NSDictionary *{
            return @{ @"districtyList":[DistrictModel class]};
        }];
    }
    return self;
}
@end
@implementation DistrictModel

+ (NSDictionary *)replacedKeyFromPropertyName{
    return @{
             @"distCode" : @"DIST_CODE",
             @"distName":@"DIST_NAME",
             };
}

@end
